-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Backport 2.8] Rest admin permissions (#2411) #2807
[Backport 2.8] Rest admin permissions (#2411) #2807
Conversation
…ch-project#2792) Signed-off-by: zhichao-aws <[email protected]> (cherry picked from commit a580dfc) Co-authored-by: zhichao-aws <[email protected]>
…-project#2797) Signed-off-by: Yaliang Wu <[email protected]> (cherry picked from commit 1bb2ef1) Co-authored-by: Yaliang Wu <[email protected]>
Permissions for REST admin user Added granular permissions for all REST API actions in OpenSearch to be individually assigned. Permissions are: - 'restapi:admin/actiongroups' - allow full access to actiongroups - 'restapi:admin/allowlist' - allow full access to allowlist - 'restapi:admin/internalusers'- allow full access to internalusers - 'restapi:admin/nodesdn'- allow full access to nodesdn - 'restapi:admin/roles' - allow full access to roles - 'restapi:admin/rolesmapping' - allow full access to roles mappings - 'restapi:admin/ssl/certs/info' - allow full access to certs info - 'restapi:admin/ssl/certs/reload' - allow full access to certs reload - 'restapi:admin/tenants' - allow full access to tenants Adds tests for these permissions. Signed-off-by: Andrey Pleskach <[email protected]> (cherry picked from commit d676716)
Signed-off-by: Darshit Chanpura <[email protected]>
Signed-off-by: Darshit Chanpura <[email protected]>
@DarshitChanpura and @scrawfor99 I need to create a backport for #2605 as well. After this one has been merged. |
Signed-off-by: Darshit Chanpura <[email protected]>
Codecov Report
@@ Coverage Diff @@
## 2.8 #2807 +/- ##
============================================
+ Coverage 61.27% 61.34% +0.06%
- Complexity 3318 3367 +49
============================================
Files 264 264
Lines 18507 18631 +124
Branches 3265 3283 +18
============================================
+ Hits 11341 11430 +89
- Misses 5590 5613 +23
- Partials 1576 1588 +12
|
Remove unused import
tests passed for at least Linux build |
Signed-off-by: Darshit Chanpura <[email protected]>
@opensearch-project/engineering-effectiveness We are having to remove a dependency on backports to 2.8 in order to get our CI checks working, but the underlying issue is that there is a stale minimum distribution for OpenSearch core (https://artifacts.opensearch.org/snapshots/core/opensearch/2.8.0-SNAPSHOT/opensearch-min-2.8.0-SNAPSHOT-linux-x64-latest.tar.gz) that does not reflect the code that is on the 2.8 branch. Can someone help produce a new minimum distribution from the 2.8 branch of core? Specifically this change is in the 2.x branch of core, but not 2.8: opensearch-project/OpenSearch#7779 The minimum distribution for the 2.8 SNAPSHOT should not include that change. |
@@ -289,7 +289,6 @@ configurations.all { | |||
} | |||
|
|||
dependencies { | |||
implementation 'jakarta.annotation:jakarta.annotation-api:1.3.5' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be re-introduced in another PR once a new minimum snapshot distribution of core is available.
Backports #2411 to 2.8
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.